package com.system.service.impl;

import com.system.dao.IShopDao;
import com.system.dao.ISysPermissionDao;
import com.system.entity.Shop;
import com.system.service.IShopService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class ShopServiceImpl implements IShopService {

    @Resource
    private IShopDao shopDao;

    @Override
    public List<Shop> selectAllShop() {
        return shopDao.selectAllShop();
    }

    @Override
    public Shop selectShopById(int id) {
        return shopDao.selectShopById(id);
    }

    @Override
    public boolean insertShop(Shop shop) {
        return shopDao.insertShop(shop);
    }

    @Override
    public boolean updateShop(Shop shop) {
        return shopDao.updateShop(shop);
    }

    @Override
    public boolean deleteShopById(int id) {
        return shopDao.deleteShopById(id);
    }
}
